package com.crr.demo.mapper;


import com.crr.demo.bean.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    List<User> selectAllUser();
    int insertUser(@Param("user") User user);
    void deleteUser(@Param("user") User user);
    void recoverUser(@Param("user") User user);
    void updateUser(@Param("user") User user);
    void authUser(@Param("id")Long id,@Param("role") Long role);
    User getUser(@Param("identityId")String identityId);
//    User selectUserById(@Param("username") User user);
    User getUserById(@Param("id")Long id);
    User getUserByLogin(@Param("identityId")String identityId, @Param("pwd") String pwd);
}
